﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HTComics.Web
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            //Check User Login Status
            if (Session["UID"] != null)
            {
                lnkLogin.InnerHtml = Session["FirstName"].ToString() + " " + Session["LastName"].ToString() + " [Logout]";
                lnkLogin.HRef = ResolveUrl("~/User/Login.aspx?logout=1");

                lnkSignup.Visible = false;
            }
            else
            {
                lnkLogin.InnerHtml = "Login";
                lnkLogin.HRef = ResolveUrl("~/User/Login.aspx");
            }

            lnkSignup.HRef = ResolveUrl("~/User/Signup.aspx");
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}